package com.ys.chatserver.http.logic.dto;

import java.io.Serializable;
import java.util.List;


public class ChannelTree implements Serializable {

    // 节点id(如果为群节点-群id,如果是频道节点-频道id,如果是用户-用户id)
    private String id;
    private String name;
    // 0-群,1-频道,2-用户
    private String type;
    // 父节点id
    private String pId;
    // 父节点类型
    private String pType;
    // 管理员
    private List<UserInfoDTO> mUsers;
    // 指挥员
    private List<UserInfoDTO> sUsers;
    // 集合id
    private List<String> cIds ;
    // 所属群组
    private String gId;
    // 子树
    List<ChannelTree> child;
    private String key;
    public String getKey() {
        return this.pId + this.id;
    }
    public void setKey(String key) {
        this.key = this.pId + this.id;
    }
    public String getgId() {
        return gId;
    }
    public void setgId(String gId) {
        this.gId = gId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getpId() {
        return pId;
    }

    public void setpId(String pId) {
        this.pId = pId;
    }

    public String getpType() {
        return pType;
    }

    public void setpType(String pType) {
        this.pType = pType;
    }

    public List<ChannelTree> getChild() {
        return child;
    }

    public void setChild(List<ChannelTree> child) {
        this.child = child;
    }

    public List<String> getcIds() {
        return cIds;
    }

    public void setcIds(List<String> cIds) {
        this.cIds = cIds;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<UserInfoDTO> getmUsers() {
        return mUsers;
    }

    public void setmUsers(List<UserInfoDTO> mUsers) {
        this.mUsers = mUsers;
    }

    public List<UserInfoDTO> getsUsers() {
        return sUsers;
    }

    public void setsUsers(List<UserInfoDTO> sUsers) {
        this.sUsers = sUsers;
    }
}
